package com.cz.video.website.mapper;

import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.baomidou.mybatisplus.core.toolkit.Constants;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.cz.video.common.core.domain.PageQuery;
import com.cz.video.common.core.mapper.BaseMapperPlus;
import com.cz.video.website.domain.WebsiteMovie;
import com.cz.video.website.domain.vo.WebsiteMovieVo;
import org.apache.ibatis.annotations.Param;

/**
 * <p>
 * 电影表 Mapper 接口
 * </p>
 *
 * @author 洪圆胜
 * @since 2023-10-15
 */
public interface WebsiteMovieMapper extends BaseMapperPlus<WebsiteMovieMapper,WebsiteMovie, WebsiteMovieVo> {

    /**
     * 查询详细信息
     * @param id
     * @return
     */
    WebsiteMovieVo selectDetailInfo(Long id);

    /**
     * 查询电影分页
     * @param websiteMovieWrapper
     * @param pageQuery
     * @return
     */
    Page<WebsiteMovieVo> selectPageList(@Param(Constants.WRAPPER) Wrapper<WebsiteMovie> websiteMovieWrapper,
                                        @Param("page") PageQuery pageQuery);
}
